Static and Dynamic Coupling Attribute Evaluators

نویسندگان

  • Gilles Roussel
  • Didier Parigot
  • Martin Jourdan
چکیده

Several years ago, the notion of attribute coupled grammars was introduced by Ganzinger and Giegerich 5], together with their descriptional composition. The latter works essentially at the speciication level, i.e., it produces an attribute grammar which speciies the composition of two attribute coupled grammars. We introduce a new approach to this composition of attribute coupled grammars. It no longer works at the speciication level but rather at the evaluator level. It produces a special kind of attribute evaluator, called coupling evaluator. We present both a static version and a dynamic version of coupling evaluators. Both versions retain the good property of descriptional composition that intermediate trees are not physically constructed. In addition|and this is the main advantage of our approach, compared with descriptional composition|, it is possible to build separately the dynamic coupling evaluator of each attribute coupled grammar; in other words we achieve real separate compilation of AG modules. Ce travail a et e partiellement nanc e par le projet ESPRIT #5399 \Compare". Les grammaires coupl ees par attributs ont et e introduites par Ganzinger et Giegerich 5], avec la notion de composition descriptionnelle. Cette composition s'eeectue essentielement au niveau de la sp eciication, c'est-a-dire qu'elle produit une nouvelle grammaire attribu ee qui sp eciie la composition des deux grammaires coupl ees. Nous introduisons une nouvelle approche de cette composition de grammaire coupl ees par attributs. Elle ne s'eeectue pas au niveau de la sp eciication mais plut^ ot au niveau des evaluateurs d'attributs. Elle produit un autre type d' evaluateur d'attributs, appel e evaluateur de couplage. Nous pr esentons a la fois une version statique et version dynamique de ces evaluateurs de couplage. Ces deux versions conservent la bonne propri et e de la composition descriptionnelle, qui est que l'arbre interm edaire n'est pas construit physiquement. De plus | c'est l'un des principaux avantages de notre approche, compar ee a la composition description-nelle |, il est possible de construire s epar ement les evaluateurs de couplage. Autremant dit, nous aboutisons r eellement a une compilation s epar ee des modules de grammaires attribu ees.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Conditional Evaluation in Simple Multi-Visit Attribute-Grammar Evaluators

Attribute grammars are a formalism for specifying computations on context-free languages. Due to the nonstrictness of the if constructs in attribution equations, it is possible to avoid evaluating certain attribute instances in a syntax tree. A dynamic evaluator can easily avoid such useless computations with a demand-driven approach. However, dynamic evaluators are not efficient because they n...

متن کامل

Simulation of Store Separation using Low-cost CFD with Dynamic Meshing

The simulation of the store separation using the automatic coupling of dynamic equations with flow aerodynamics is addressed. The precision and cost (calculation time) were considered as comparators. The method used in the present research decreased the calculation cost while limiting the solution error within a specific and tolerable interval. The methods applied to model the aerodynamic force...

متن کامل

Incremental Evaluators for Remote Attribute Grammars

Remote attribute grammars use objects with separately defined fields to induce direct nonlocal dependencies in attribute grammars. Fields of an object may be read remotely from where it is created, and special “collection” fields may be written remotely as well. Building on earlier work which shows that remote attribute grammars can be scheduled statically, this paper shows how they may be impl...

متن کامل

An Introduction To Attribute Grammars

Beside the syntax, semantic is a very important part of programming languages. Without a semantic a program would no longer be a program but a lifeless sequence of characters which is part of the language. The dynamic semantic properties of a program are determined during execution at runtime. Typically they directly depend on the input values of the program. By contrast the static semantic pro...

متن کامل

Response Modification Factor of Coupled Steel Shear Walls

The present research is concerned with the determination of ductility, over-strength and response modification factors of coupled steel shear wall frames. Three structural models with various numbers of stories, bay width and coupling beam height were analyzed using static pushover and incremental nonlinear dynamic analyses. The ductility, over-strength and response modification factors for the...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995